import { request } from "@umijs/max";
import { stringify } from "qs";
//系统工作人员分页列表
export const getSystemStaffPage = (params: API.SystemStaffPage) =>
  request(`/sys-staff/page?${stringify(params)}`, {
    method: "GET",
  });
//新增系统工作人员
export const addSystemStaff = (params: API.SystemStaffInfo) =>
  request(`/sys-staff/save`, {
    method: "POST",
    data: params,
  });
//修改系统工作人员
export const editSystemStaff= (params: API.SystemStaffInfo) =>
  request(`/sys-staff/edit`, {
    method: "POST",
    data: params,
  });
//查看系统工作人员详情
export const getSystemStaffDetail = (sysStaffId:number) =>
  request(`/sys-staff/query?sysStaffId=${sysStaffId}`, {
    method: "GET",
  });
//删除学生
export const delSystemStaff = (sysStaffIdArr:number[]) =>
request(`/sys-staff/del`, {
  method: "POST",
  data: {items:sysStaffIdArr},
});


//系统工作人员列表
export const getDftUserList = () =>
  request(`/sys-staff/queryList?role=4`, {
    method: "GET",
  });